package dao;

import java.sql.SQLException;

import javax.naming.NamingException;

import org.eclipse.jdt.annotation.NonNull;

import bean.Contact;
import bean.Page;

public interface ContactDAO {

    Page selectByContact(@NonNull Contact temporary, int pageSize, int pageIndex) throws SQLException, NamingException;

    Contact selectById(@NonNull Contact temporary) throws SQLException, NamingException;

    boolean insert(@NonNull Contact temporary) throws SQLException, NamingException;

    boolean updateById(@NonNull Contact temporary) throws SQLException, NamingException;

    boolean deleteById(@NonNull Contact temporary) throws SQLException, NamingException;

    void deleteByIds(@NonNull String[] contactIds, int accountId) throws SQLException, NamingException;
    
    boolean selectIdByGroupId(@NonNull Contact temporary) throws SQLException, NamingException;

}